<div class="panel panel-default panel-intro">
    <!-- 选项卡的标题 -->
    <div class="panel-heading">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#info" data-toggle="tab">客户资料</a></li>
            <li><a href="#receive" data-toggle="tab">申请记录</a></li>
            <li><a href="#visit" data-toggle="tab">回访记录</a></li>
            <li><a href="#record" data-toggle="tab">消费记录</a></li>
            <li><a href="#subject" data-toggle="tab">课程订单</a></li>
        </ul>
    </div>

    <!-- 页面主体 -->
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <!-- 选项卡的主体 -->
            <div class="tab-pane fade active in" id="info">
                <div class="panel-body newrow prindBody">
                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('BusinessNickname')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.nickname}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('BusinessMobile')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.mobile}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Email')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.email ? $row.email : '暂无邮箱'}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Gender')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.gender_text}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Money')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.money}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('BusinessSource')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.source.name ? $row.source.name : '未知来源'}
                        </div>
                    </div>
                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('BusinessDeal')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.deal_text}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('BusinessAuth')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.auth == 1 ? '已认证' : '未认证'}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Area')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.region_text}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Createtime')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.createtime|date="Y-m-d", ###}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('BusinessApply')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.admin.nickname ? $row.admin.nickname : ''}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Avatar')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            <img src="{$row.avatar_text}" width="100" />
                        </div>
                    </div>
                </div>
            </div>

            <!-- 申请记录 -->
            <div class="tab-pane fade {:$auth->check('business/info/receive') ? '' : 'hide'}" id="receive">
                <div class="panel-body newrow prindBody">
                    <div id="ReceiveToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="ReceiveTable" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>

            <!-- 回访记录 -->
            <div class="tab-pane fade {:$auth->check('business/info/visit') ? '' : 'hide'}" id="visit">
                <div class="panel-body newrow prindBody">
                    <!-- 工具栏 -->
                    <div id="VisitToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                        <a href="javascript:;"
                            class="btn btn-success btn-visit-add {:$auth->check('business/visit/add')?'':'hide'}">
                            <i class="fa fa-plus"></i> {:__('Add')}
                        </a>
                    </div>

                    <!-- 表格 -->
                    <table id="VisitTable" class="table table-striped table-bordered table-hover" width="100%"
                        data-operate-VisitEdit="{:$auth->check('business/visit/edit')}"
                        data-operate-VisitDel="{:$auth->check('business/visit/del')}">
                    </table>
                </div>
            </div>

            <!-- 消费记录 -->
            <div class="tab-pane fade {:$auth->check('business/info/record') ? '' : 'hide'}" id="record">
                <div class="panel-body newrow prindBody">
                    <div id="RecordToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="RecordTable" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>

            <!-- 课程订单 -->
            <div class="tab-pane fade {:$auth->check('business/info/subject') ? '' : 'hide'}" id="subject">
                <div class="panel-body newrow prindBody">
                    <div id="SubjectToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="SubjectTable" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>
        </div>

    </div>
</div>